import request from '@/utils/request'

// 查询设备可用日期列表
export function listDeviceUseableTime(query) {
  return request({
    url: '/system/deviceUseableTime/list',
    method: 'get',
    params: query
  })
}

// 查询设备可用日期详细
export function getDeviceUseableTime(id) {
  return request({
    url: '/system/deviceUseableTime/' + id,
    method: 'get'
  })
}

// 新增设备可用日期
export function addDeviceUseableTime(data) {
  return request({
    url: '/system/deviceUseableTime',
    method: 'post',
    data: data
  })
}

// 修改设备可用日期
export function updateDeviceUseableTime(data) {
  return request({
    url: '/system/deviceUseableTime',
    method: 'put',
    data: data
  })
}

// 删除设备可用日期
export function delDeviceUseableTime(id) {
  return request({
    url: '/system/deviceUseableTime/' + id,
    method: 'delete'
  })
}
